package com.wang.designpattern.mediator;

public abstract class Mediator {

    /**
     * 将一个中介者对象加人到集合中
     * @param colleagueName
     * @param colleague
     */
    public abstract void register(String colleagueName, Colleague colleague);

    /**
     * 接收具体的同事对象发出的消息
     * @param stateChange
     * @param colleagueName
     */
    public abstract void getMessage(int stateChange, String colleagueName);

    public abstract void sendMessage();
}
